package cn.itcast.feign.client;

import cn.itcast.feign.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("userservice")   //克赖恩特  客户端
public interface UserClient {
    @GetMapping("/user/{id}")
    User findByid(@PathVariable("id") long id);

}
